package Game;

import Java01.Poker;

public abstract class PersonPlayer {
    private int ID;
    private int money;
    private String name;
    private Poker poker;
    public abstract void initID();
    public abstract void initMoney();
    public abstract void initName();
    public abstract void pokerPrint();

    public int getID() {
        return ID;
    }

    public void setID(int ID) {
        this.ID = ID;
    }

    public int getMoney() {
        return money;
    }

    public void setMoney(int money) {
        this.money = money;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Poker getPoker() {
        return poker;
    }

    public void setPoker(Poker poker) {
        this.poker = poker;
    }

    public boolean compareTo(Poker poker) {
        if (this.poker.getPokerNumber().getTag() == poker.getPokerNumber().getTag()) {
            return this.poker.getPokerSuit().getTag() > poker.getPokerSuit().getTag();
        } else return this.poker.getPokerNumber().getTag() > poker.getPokerNumber().getTag();
    }

    @Override
    public String toString() {
        return "电脑下注完成";
    }
}
